package PenTest.meituan.acm0406;

import java.util.Scanner;

public class acm2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num= Integer.parseInt(scanner.nextLine());
        String[] tar = scanner.nextLine().split(" ");
        int res = 0;
        for (int i = 0; i < tar.length; i++) {
            String curr = tar[i];
            curr=curr.replace("+0i", "");
            curr=curr.replace("-0i", "");//注意这里curr要变化引用，因为固定的String对象不可变
            if (!curr.contains("i")) {
                res++;
            }
        }
        System.out.println(res);
    }
}
